<template>
    <div class="student">
        <el-table :data="tableData" border style="width: 100%">
            <el-table-column prop="date" label="日期" width="180">
            </el-table-column>
            <el-table-column prop="name" label="姓名" width="180">
            </el-table-column>
            <el-table-column prop="address" label="地址">
            </el-table-column>
        </el-table>
    </div>
</template>
<script>
import { students } from '@/api/api.js';
export default {
    data() {
        return {
            tableData: []
        }
    },
    methods:{
        getData(params){
            students(params)
            .then(res => {
                console.log(res);
                
            })
        }
    }
}
</script>
<style lang="scss" scoped>
.student {
  
    margin-top: 20px;
}
</style>